package com.x.Part4_抽象类.练习;

/**
 * ClassName: MyDate
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.03.04 21:45
 */
public class MyDate {
    private int year;
    private int month;
    private  int day;

    public MyDate() {
    }

    public MyDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }


    public String toDateString() {
        return
                "year='" + year + '\'' +
                ", month='" + month + '\'' +
                ", day='" + day + '\'' ;
    }
}
